package com.xpand.guava;


import com.google.common.collect.ClassToInstanceMap;
import com.google.common.collect.MutableClassToInstanceMap;

/**
 * @Author: wei.wang
 * @Description:
 * @Date 2017/12/28 9:43
 * @Modified
 */
public class ClassToInstanceMapTest {
    public static void main(String[] args) {
        ClassToInstanceMap<Object> mutableClassToInstanceMap = MutableClassToInstanceMap.create();
        mutableClassToInstanceMap.put(ObjectTest.class, new ObjectTest());

        System.out.println(mutableClassToInstanceMap.getInstance(ObjectTest.class));
    }
}
